package org.zfes.snowier.cloud.zbss.pmp.dao;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.zfes.snowier.common.dao.mybatis.BaseMapper;
import org.zfes.snowier.common.dao.params.ParamMap;
import org.zfes.snowier.cloud.zbss.pmp.model.PmpProject;
import org.zfes.snowier.core.data.ComboboVo;
import org.zfes.snowier.core.data.Record;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface PmpProjectMapper extends BaseMapper<PmpProject>{
	
	Long selectListCount(ParamMap params);
	
	List<Record> selectMapListPage(ParamMap params);
	
	List<PmpProject> selectModelListPage(ParamMap params);

	PmpProject selectByName( @Param("name")String name);

	int updateStatus(@Param("id")Long id, @Param("status")Byte status);

	int updateMemberCount(@Param("id")Long id,@Param("memberCount") int memberCount);

	int updateVersion(@Param("id")Long id, @Param("versionId") Long versionId, @Param("versionName")String versionName);

	Long selectJoinListCount(ParamMap params);

	List<PmpProject> selectByIds(@Param("ids") List<Long> ids);
	
	List<ComboboVo> selectComboboVo(Byte status);
}
